package cn.microservices.cloud.common.core.entity;

import java.io.Serializable;

/**
 * @Description TODO
 * @ClassName MsgContent
 * @Auhor huangyangfeng
 * @Date 2019-07-24 19:37
 * @Version 1.0
 */
public class IMMsgContent implements Serializable {
    private String text;

    private String desc;
    private String latitude;
    private String longitude;

    private String index;
    private String data;

    private String ext;
    private String sound;
    private String groupId;
    private String msgType;

    public IMMsgContent() {
    }

    /**
     * 文本消息元素
     * @param text
     */
    public IMMsgContent(String text) {
        this.text = text;
    }



    /**
     * 地理位置消息元素
     * @param desc
     * @param latitude
     * @param longitude
     */
    public IMMsgContent(String desc, String latitude, String longitude) {
        this.desc = desc;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    /**
     * 表情消息元素
     * @param index
     * @param data
     */
    public IMMsgContent(String index, String data) {
        this.index = index;
        this.data = data;
    }

    /**
     * 自定义消息元素
     * @param desc
     * @param data
     * @param ext
     * @param sound
     */
    public IMMsgContent(String desc, String data, String ext, String sound) {
        this.desc = desc;
        this.data = data;
        this.ext = ext;
        this.sound = sound;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
}
